﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace RongCloudSms.Model
{
    public class RongCloudResponse
    {
        /// <summary>
        /// 发送用户 Id
        /// </summary>
        [JsonProperty("senderUserId")]
        public string FromUserId { get; set; }
        /// <summary>
        /// 接收用户 Id，即为客户端 targetId
        /// </summary>
        [JsonProperty("targetId")]
        public string ToUserId { get; set; }
        [JsonProperty("objectName")]
        public string ObjectName { get; set; }
        /// <summary>
        /// 发送消息内容
        /// </summary>
        [JsonProperty("content")]
        public string Content { get; set; }
        [JsonProperty("channelType")]
        public string ChannelType { get; set; }
        /// <summary>
        /// 服务端收到客户端发送消息时的服务器时间（1970年到现在的毫秒数）
        /// </summary>
        [JsonProperty("sentTime")]
        public string MsgTimestamp { get; set; }
        /// <summary>
        /// 可通过 msgUID 确定消息唯一
        /// </summary>
        [JsonProperty("messageUId")]
        public string MsgUID { get; set; }

        [JsonProperty("sensitiveType")]
        public int SensitiveType { get; set; }

        [JsonProperty("source")]
        public string Source { get; set; }

        [JsonProperty("groupUserIds")]
        public string[] GroupUserIds { get; set; }
    }
}
